﻿using System.ComponentModel.DataAnnotations;
using EPPlus.Core.Extensions;
using Hicap.AuthorizationServer.CommonDto.BaseEntityDto;
using Hicap.AuthorizationServer.Core.Models.Base.Const;

namespace Hicap.AuthorizationServer.Sys.DTO.AuthObjects
{
    public class AuthObjectEditDto : EntityBaseEditDto
    {
        ////BCC/ BEGIN CUSTOM CODE SECTION
        ////ECC/ END CUSTOM CODE SECTION
        /// <summary>
        /// 权限编码
        /// </summary>
        [Required]
        [StringLength(EntityLengthConst.LongCode)]
        [ExcelTableColumn(2)] public string ObjectCode { get; set; }

        /// <summary>
        /// 权限名称
        /// </summary>
        [Required]
        [StringLength(EntityLengthConst.LongName)]
        [ExcelTableColumn(3)] public string ObjectName { get; set; }

        [ExcelTableColumn(9)] public sbyte IsTailNode { get; set; }
        [ExcelTableColumn(8)] public int? ParentObjectId { get; set; }
    }
}